import random
you =int (input("请出拳，剪刀（0）石头（1）布（2）"))
com=random.randint(0,2)

if ((you==0) and (com==2)) or ((you==1) and (com==0)) or ((you==2)and(com==1)):
    print("恭喜你，赢了")

elif (you==com):
    print("平局")
else:
    print("失败")
print(f'电脑的出拳是{com}')